package com.scpii.universal;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.monitor.MonitorServer;
import com.scpii.universal.util.CompileConfigUtil;
import com.scpii.universal.util.ExceptionUtil;

public class UniversalMain {

	private static final Logger logger = LoggerFactory
			.getLogger(UniversalMain.class);

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		try {
			logger.info("加载配制文件");
			CompileConfigUtil config = new CompileConfigUtil();
			config.load();

			logger.info("监听调度任务");
			MonitorServer server = new MonitorServer();
			server.monitor();
		} catch (Exception e) {
			logger.error("Monitor Exception:"
					+ ExceptionUtil.getExceptionMsg(e));
		}
	}

}
